<body>
    <div class="warp h">
        <!--header-->
        <header class="hd br">
            <a href="<?php echo $base_url?>home/account/myinfo" class="l-icon only-icon">
            <i class="iconfont icon-left1"></i>      
        </a>
            <p class="tit2">
                绑定银行卡
            </p>
        </header>
        <div class="card-box">
            <a href="javascript:;" class="a_box">
                <div class="cont">
                    <i class="iconfont icon-yinxingqiaguanli"></i>
                    <div class="msg">
                        <p class="txt_1"><?php echo $bankname;?></p>
                        <p class="txt_2"><?php echo $userinfo['username']?></p>
                        <p class="num txt_3"><?php 
                          echo  substr_replace($userinfo['cardid']," **** **** ",4, -4); 
                         ?></p>
                    </div>
                </div>
            </a>
            <a href="<?php echo $base_url?>home/card/addcard?status=edit" class="huanyihuan-btn">
                <i class="iconfont icon-huanyihuan"></i>
                更换
                </a>
        </div>
    </div>
    <script src="/static/dist/js/base.js"></script>
    <script>
        // 矫正rem
        function correctrem() {
            var rem_full_width = $("<div id='rem-test' style='width:7.5rem'></div>").appendTo($('body')).width();
            var device_width = Math.min(document.documentElement.clientWidth, 640);
            if (rem_full_width !== device_width) {
                document.documentElement.style.fontSize = (device_width / 7.5) * (device_width / rem_full_width) + 'px';
            }
            $('#rem-test').remove();
        }
        correctrem();
    </script>
</body>
</html>